package com.efast.dmom.mgmt.entity.master;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * bill of material
 * </p>
 *
 * @author cong.xu
 * @since 2018-09-19
 */
@TableName("tm_bas_bom")
public class TmBasBom implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "tm_bas_bom_id", type = IdType.AUTO)
    private Integer tmBasBomId;
    /**
     * bom 名称
     */
    @TableField("bom_name")
    private String bomName;
    /**
     * 零件本地标识码
     */
    @TableField("tm_bas_part_id")
    private Integer tmBasPartId;
    /**
     * 成品料号
     */
    @TableField("part_no_version")
    private String partNoVersion;
    /**
     * 追溯模式：single关键件(零件消耗时提供每个零件序号)，batch批次件(零件消耗时提供物料号)，none不追溯
     */
    @TableField("trace_mode")
    private String traceMode;
    /**
     * 描述
     */
    private String comments;
    /**
     * 是否激活
     */
    @TableField("mark_status")
    private Integer markStatus;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建用户
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 上次更新时间
     */
    @TableField("last_update_time")
    private String lastUpdateTime;
    /**
     * 更改用户
     */
    @TableField("last_update_user")
    private String lastUpdateUser;
    /**
     * 版本控制
     */
    @TableField("opt_counter")
    private Integer optCounter;
    /**
     * 企业代码
     */
    @TableField("company_code")
    private String companyCode;
    /**
     * 版本
     */
    private String version;


    public Integer getTmBasBomId() {
        return tmBasBomId;
    }

    public void setTmBasBomId(Integer tmBasBomId) {
        this.tmBasBomId = tmBasBomId;
    }

    public String getBomName() {
        return bomName;
    }

    public void setBomName(String bomName) {
        this.bomName = bomName;
    }

    public Integer getTmBasPartId() {
        return tmBasPartId;
    }

    public void setTmBasPartId(Integer tmBasPartId) {
        this.tmBasPartId = tmBasPartId;
    }

    public String getPartNoVersion() {
        return partNoVersion;
    }

    public void setPartNoVersion(String partNoVersion) {
        this.partNoVersion = partNoVersion;
    }

    public String getTraceMode() {
        return traceMode;
    }

    public void setTraceMode(String traceMode) {
        this.traceMode = traceMode;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getMarkStatus() {
        return markStatus;
    }

    public void setMarkStatus(Integer markStatus) {
        this.markStatus = markStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(String lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser;
    }

    public Integer getOptCounter() {
        return optCounter;
    }

    public void setOptCounter(Integer optCounter) {
        this.optCounter = optCounter;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "TmBasBom{" +
        ", tmBasBomId=" + tmBasBomId +
        ", bomName=" + bomName +
        ", tmBasPartId=" + tmBasPartId +
        ", partNoVersion=" + partNoVersion +
        ", traceMode=" + traceMode +
        ", comments=" + comments +
        ", markStatus=" + markStatus +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", lastUpdateTime=" + lastUpdateTime +
        ", lastUpdateUser=" + lastUpdateUser +
        ", optCounter=" + optCounter +
        ", companyCode=" + companyCode +
        ", version=" + version +
        "}";
    }
}
